<template>
  <view class="container">
    <div v-if="isInWeChatApp" class="zhezhao">
        <image src="/static/teamcenter/xiazai_dao.png" class="xiazai_dao"></image>
    </div>
  </view>
</template>

<script setup lang="ts">
import { onLoad } from '@dcloudio/uni-app'
import { ref } from 'vue'
const isInWeChatApp = ref(false)
onLoad((e:any)=>{
    const browser = window.navigator.userAgent.toLowerCase()
    console.log(browser)
    if(browser.match(/MicroMessenger/i) == 'micromessenger'){
        isInWeChatApp.value = true
    }else{
        window.location.href = e.url 
    }
})

</script>

<style scoped lang="scss">
.zhezhao{width: 100vw;height: 100vh;background: rgba($color: #000000, $alpha: .2);text-align: right;
    .xiazai_dao{width: 90%;}
}
</style>